package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.CfDrawalMapper;
import com.ruoyi.order.domain.CfDrawal;
import com.ruoyi.order.service.ICfDrawalService;

/**
 * 商家提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class CfDrawalServiceImpl implements ICfDrawalService 
{
    @Autowired
    private CfDrawalMapper cfDrawalMapper;

    /**
     * 查询商家提现记录
     * 
     * @param id 商家提现记录主键
     * @return 商家提现记录
     */
    @Override
    public CfDrawal selectCfDrawalById(Long id)
    {
        return cfDrawalMapper.selectCfDrawalById(id);
    }

    /**
     * 查询商家提现记录列表
     * 
     * @param cfDrawal 商家提现记录
     * @return 商家提现记录
     */
    @Override
    public List<CfDrawal> selectCfDrawalList(CfDrawal cfDrawal)
    {
        return cfDrawalMapper.selectCfDrawalList(cfDrawal);
    }

    /**
     * 新增商家提现记录
     * 
     * @param cfDrawal 商家提现记录
     * @return 结果
     */
    @Override
    public int insertCfDrawal(CfDrawal cfDrawal)
    {
        return cfDrawalMapper.insertCfDrawal(cfDrawal);
    }

    /**
     * 修改商家提现记录
     * 
     * @param cfDrawal 商家提现记录
     * @return 结果
     */
    @Override
    public int updateCfDrawal(CfDrawal cfDrawal)
    {
        return cfDrawalMapper.updateCfDrawal(cfDrawal);
    }

    /**
     * 批量删除商家提现记录
     * 
     * @param ids 需要删除的商家提现记录主键
     * @return 结果
     */
    @Override
    public int deleteCfDrawalByIds(Long[] ids)
    {
        return cfDrawalMapper.deleteCfDrawalByIds(ids);
    }

    /**
     * 删除商家提现记录信息
     * 
     * @param id 商家提现记录主键
     * @return 结果
     */
    @Override
    public int deleteCfDrawalById(Long id)
    {
        return cfDrawalMapper.deleteCfDrawalById(id);
    }
}
